import Layout from '../views/layout/Layout'
const _import = require('./_import_' + process.env.NODE_ENV)

const ErwMenu = {
  path: '/qrManager',
  component: Layout,
  name: '二维码',
  meta: {
    title: '二维码',
    icon: 'chart'
  },
  icon: 'chart',
  authority: 'qrManager',
  children: [
    {
      path: 'goodsManager',
      component: _import('qr/goods/index'),
      name: '商品管理',
      meta: {
        title: '商品管理',
        icon: 'tab'
      },
      authority: 'goodsManager'
    }, {
      path: 'attributeManager',
      component: _import('qr/attribute/index'),
      name: '属性管理',
      meta: {
        title: '属性管理',
        icon: 'tab'
      },
      authority: 'attributeManager'
    }, {
      path: 'orderManager',
      component: _import('qr/order/index'),
      name: '订单管理',
      meta: {
        title: '订单管理',
        icon: 'tab'
      },
      authority: 'orderManager'
    }, {
      path: 'dataManager',
      component: _import('qr/dataCount/index'),
      name: '付费计数统计',
      meta: {
        title: '付费计数统计',
        icon: 'tab'
      },
      authority: 'dataManager'
      // hidden: true
    }, {
      path: 'areaManager',
      component: _import('qr/areaCount/index'),
      name: '地区付费统计',
      meta: {
        title: '地区付费统计',
        icon: 'tab'
      },
      authority: 'areaManager'
      // hidden: true
    }, {
      path: 'scanManager',
      component: _import('qr/scan/index'),
      name: '扫描记录',
      meta: {
        title: '扫描记录',
        icon: 'tab'
      },
      authority: 'scanManager'
    }]
}

export default ErwMenu
